/**
 * Created by WzyJerry on 2017/10/21.
 * Some js here
 */

function Post(id) {
    var form = document.createElement("form");
    form.action = "/value/delete";
    form.method = "post";
    var opt = document.createElement("input");
    opt.name = "id";
    opt.value = id;
    form.appendChild(opt);
    document.body.appendChild(form);
    form.submit();
    document.body.removeChild(form);
}

function Delete(id) {
    if (confirm("Confirm to delete item?")) {
        Post(id)
    }
}


